package com.z8fz.admin.food.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.z8fz.admin.food.dao.FoodTypeDao;
import com.z8fz.admin.food.model.Type;
import com.z8fz.common.BaseDao;
import com.z8fz.common.pager.PageModel;

@Service
public class FoodTypeServiceImpl extends BaseDao implements com.z8fz.admin.food.service.FoodTypeService {
	
	
	public Type findTypeById(int id) {
		
		return foodTypeDao.selectTypeById(id);
	}

	public PageModel findType() {
		
		return foodTypeDao.selectType();
	}

	@Autowired
	private FoodTypeDao foodTypeDao;

	public FoodTypeDao getFoodTypeDao() {
		return foodTypeDao;
	}

	public void setFoodTypeDao(FoodTypeDao foodTypeDao) {
		this.foodTypeDao = foodTypeDao;
	}

	
}
